﻿# -*- coding: utf-8 -*-
from google.appengine.ext import db

class Sort(db.Model):
    index = db.IntegerProperty(indexed = False)
    time = db.DateTimeProperty(auto_now_add = True, auto_now = True)
    name = db.StringProperty()

class Field(db.Model):
    index = db.IntegerProperty(indexed = False)
    time = db.DateTimeProperty(auto_now_add = True, auto_now = True)
    sort = db.ReferenceProperty(Sort)
    name = db.StringProperty()
    remark = db.StringProperty()
    content = db.StringProperty(multiline = True)